package blf.librarysystem.Service;

import blf.librarysystem.Dao.AdminMapper;
import blf.librarysystem.Dao.ReaderMapper;
import blf.librarysystem.Pojo.Admin;
import blf.librarysystem.Pojo.Reader;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

@Service
public class AdminServiceIMP implements AdminService {

    @Resource
    private AdminMapper adminMapper;

    @Override
    public Admin login(String name, String password) {
        return adminMapper.login(name, password);
    }

    @Override
    public Admin findReaderById(int id) {
        return adminMapper.findByPrimaryKey(id);
    }
}
